package com.ugoodtech.mdcc.client.exception;

/**
 * 业务异常
 */
public enum EnumBizError implements CommonError{

  /**
   * Parameters are error.
   */
  PARAMS_INVALID("10001","参数错误"),
  /**
   * Operation failed for diverse error.
   */
  OPERATION_FAIL("10002","操作失败"),
  /**
   * Operations relates to database are failed.
   */
  DATA_OPERATION_ERROR("11001", "操作失败"),
  /**
   * Login failed for some reason.
   */
  LOGIN_FAIL("12001", "用户名或密码不正确"),
  VERIFY_CODE_NOT_EXIST("12002", "验证码不存在"),
  VERIFY_CODE_ERROR("12002", "验证码错误, 请重新发送验证码");

  private String errCode;
  private String errMsg;
  private String detailErrMsg;

  EnumBizError(String errCode, String errMsg) {
    this.errCode = errCode;
    this.errMsg = errMsg;
  }

  public String getErrCode() {
    return errCode;
  }

  public EnumBizError setErrCode(String errCode) {
    this.errCode = errCode;
    return this;
  }

  public String getDetailErrMsg() {
    return detailErrMsg;
  }

  public EnumBizError setDetailErrMsg(String detailErrMsg) {
    this.detailErrMsg = detailErrMsg;
    return this;
  }

  public String getErrMsg() {
    return errMsg;
  }

  public EnumBizError setErrMsg(String errMsg) {
    this.errMsg = errMsg;
    return this;
  }


}
